package com.nlx.notes.module.service.gold;

import com.nlx.notes.module.bean.vo.flow.GoldSaleSumOverviewVO;
import com.nlx.notes.module.entity.GoldSaleOverviewEntity;

public interface GoldSaleOverviewService {
    /**
     * 查询用户黄金的售卖概览
     * @param userId 用户id
     * @return GoldSaleOverviewEntity
     */
    GoldSaleOverviewEntity findByUserId(Long userId);

    /**
     * 查询用户黄金的售卖概览,如果不存在直接创建
     * @param userId 用户id
     * @return GoldSaleOverviewEntity
     */
    GoldSaleOverviewEntity findIfNotExistCreateByUserId(Long userId);

    /**
     * 更新黄金售卖总览
     * @param goldSaleSumOverviewVO 参数
     */
    void updateGoldSale(GoldSaleSumOverviewVO goldSaleSumOverviewVO);
}
